package cn.yunhe.entity;

import java.io.Serializable;

public class House implements Serializable {
    private int id; //房屋编号
    private User user; // 房屋所属
    private Types types; // 房屋类型
    private String title; //发布标题
    private String description; //房屋描述
    private double price; //价格
    private String pubdate; //发布日期
    private String floorage; //占地面积
    private String contact; //联系方式
    private Street street; //街道编号

    public House(User user, Types types, String title, String description, double price, String pubdate, String floorage, String contact, Street street) {
        this.user = user;
        this.types = types;
        this.title = title;
        this.description = description;
        this.price = price;
        this.pubdate = pubdate;
        this.floorage = floorage;
        this.contact = contact;
        this.street = street;
    }

    public House() {

    }

    public int getId() {

        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Types getTypes() {
        return types;
    }

    public void setTypes(Types types) {
        this.types = types;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getPubdate() {
        return pubdate;
    }

    public void setPubdate(String pubdate) {
        this.pubdate = pubdate;
    }

    public String getFloorage() {
        return floorage;
    }

    public void setFloorage(String floorage) {
        this.floorage = floorage;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public Street getStreet() {
        return street;
    }

    public void setStreet(Street street) {
        this.street = street;
    }
}
